<?php
/**
 * SocialEngine
 *
 * @category   Application_Core
 * @package    Storage
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 * @version    $Id: Generic.php 8221 2011-01-15 00:24:02Z john $
 * @author     John Boehr <j@webligo.com>
 */

/**
 * @category   Application_Core
 * @package    Storage
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 */
class Storage_Form_Admin_Service_Generic extends Engine_Form {
	public function init() {
		$this->setTitle ( 'Edit Storage Service' );
		
		// Element: enabled
		$this->addElement ( 'Radio', 'enabled', array ('label' => 'Enabled?', 'multiOptions' => array ('1' => 'Yes, files can be stored and retrieved using this service.', '0' => 'No, this service is disabled.' ) ) );
		
		// Element: execute
		$this->addElement ( 'Button', 'execute', array ('label' => 'Save Changes', 'order' => 900, 'type' => 'submit', 'ignore' => true, 'decorators' => array ('ViewHelper' ) ) );
		
		// Element: cancel
		$this->addElement ( 'Cancel', 'cancel', array ('label' => 'cancel', 'order' => 901, 'prependText' => ' or ', 'ignore' => true, 'link' => true, 'href' => Zend_Controller_Front::getInstance ()->getRouter ()->assemble ( array ('action' => 'index', 'service_id' => null, 'justCreated' => null ) ), 'decorators' => array ('ViewHelper' ) ) );
		
		// DisplayGroup: buttons
		$this->addDisplayGroup ( array ('execute', 'cancel' ), 'buttons', array ('decorators' => array ('FormElements', 'DivDivDivWrapper' ) ) );
	}
}